package com.cgx.dao;

import com.cgx.entity.User.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao extends MongoRepository<User, String> {

    List<User> findAllByLoginNameAndIsDelete(String loginName, Integer isDelete);

    List<User> findAllByPhoneAndIsDelete(String phone, Integer isDelete);

    List<User> findAllByUserIdAndIsDelete(String userId, Integer isDelete);

    List<User> findAllByUserIdInAndIsDelete(List<String> userIds, Integer isDelete);
}
